package com.itheima.springboot_start.CompertitionSystem;

import java.time.LocalDateTime;

public class Compertition {
    //创建标准的竞赛JavaBean类,包括赛事名称,开始结束时间,举办地点
    private String name;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private String location;


    public Compertition() {
    }

    public Compertition(String name, LocalDateTime startTime, LocalDateTime endTime, String location) {
        this.name = name;
        this.startTime = startTime;
        this.endTime = endTime;
        this.location = location;
    }

    /**
     * 获取
     *
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     *
     * @return startTime
     */
    public LocalDateTime getStartTime() {
        return startTime;
    }

    /**
     * 设置
     *
     * @param startTime
     */
    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    /**
     * 获取
     *
     * @return endTime
     */
    public LocalDateTime getEndTime() {
        return endTime;
    }

    /**
     * 设置
     *
     * @param endTime
     */
    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    /**
     * 获取
     *
     * @return location
     */
    public String getLocation() {
        return location;
    }

    /**
     * 设置
     *
     * @param location
     */
    public void setLocation(String location) {
        this.location = location;
    }

    public String toString() {
        return "Compertition{name = " + name + ", startTime = " + startTime + ", endTime = " + endTime + ", location = " + location + "}";
    }
}
